BitmovinDownloadService

open class BitmovinDownloadService : MultiDownloadManagerDownloadService

Android Service that handles downloading content for offline playback. Can be extended to implement custom notification behaviour.

Constructors

BitmovinDownloadService
Link copied to clipboard
open fun BitmovinDownloadService()

Properties

DEFAULT_REQUIREMENTS
Link copied to clipboard
val DEFAULT_REQUIREMENTS: Requirements

Functions

getRequirements
Link copied to clipboard
open fun getRequirements(): Requirements

Inherited functions

bindIsolatedService
Link copied to clipboard
open fun bindIsolatedService(service: Intent, flags: Int, instanceName: String, executor: Executor, conn: ServiceConnection): Boolean
bindService
Link copied to clipboard
open fun bindService(service: Intent, conn: ServiceConnection, flags: Int): Boolean
buildAddDownloadIntent
Link copied to clipboard
open fun buildAddDownloadIntent(context: Context, clazz: Class<out DownloadService>, downloadRequest: DownloadRequest, foreground: Boolean): Intent
buildPauseDownloadsIntent
Link copied to clipboard
open fun buildPauseDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
buildRemoveAllDownloadsIntent
Link copied to clipboard
open fun buildRemoveAllDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
buildRemoveDownloadIntent
Link copied to clipboard
open fun buildRemoveDownloadIntent(context: Context, clazz: Class<out DownloadService>, id: String, foreground: Boolean): Intent
buildResumeDownloadsIntent
Link copied to clipboard
open fun buildResumeDownloadsIntent(context: Context, clazz: Class<out DownloadService>, foreground: Boolean): Intent
buildSetRequirementsIntent
Link copied to clipboard
open fun buildSetRequirementsIntent(context: Context, clazz: Class<out DownloadService>, requirements: Requirements, foreground: Boolean): Intent
buildSetStopReasonIntent
Link copied to clipboard
open fun buildSetStopReasonIntent(context: Context, clazz: Class<out DownloadService>, id: String, stopReason: Int, foreground: Boolean): Intent
checkCallingOrSelfPermission
Link copied to clipboard
open fun checkCallingOrSelfPermission(permission: String): Int
checkCallingOrSelfUriPermission
Link copied to clipboard
open fun checkCallingOrSelfUriPermission(uri: Uri, modeFlags: Int): Int
checkCallingPermission
Link copied to clipboard
open fun checkCallingPermission(permission: String): Int
checkCallingUriPermission
Link copied to clipboard
open fun checkCallingUriPermission(uri: Uri, modeFlags: Int): Int
checkPermission
Link copied to clipboard
open fun checkPermission(permission: String, pid: Int, uid: Int): Int
checkSelfPermission
Link copied to clipboard
open fun checkSelfPermission(permission: String): Int
checkUriPermission
Link copied to clipboard
open fun checkUriPermission(uri: Uri, pid: Int, uid: Int, modeFlags: Int): Int
clearWallpaper
Link copied to clipboard
open fun clearWallpaper()
createConfigurationContext
Link copied to clipboard
open fun createConfigurationContext(overrideConfiguration: Configuration): Context
createContextForSplit
Link copied to clipboard
open fun createContextForSplit(splitName: String): Context
createDeviceProtectedStorageContext
Link copied to clipboard
open fun createDeviceProtectedStorageContext(): Context
createDisplayContext
Link copied to clipboard
open fun createDisplayContext(display: Display): Context
createPackageContext
Link copied to clipboard
open fun createPackageContext(packageName: String, flags: Int): Context
databaseList
Link copied to clipboard
open fun databaseList(): Array<String>
deleteDatabase
Link copied to clipboard
open fun deleteDatabase(name: String): Boolean
deleteFile
Link copied to clipboard
open fun deleteFile(name: String): Boolean
deleteSharedPreferences
Link copied to clipboard
open fun deleteSharedPreferences(name: String): Boolean
enforceCallingOrSelfPermission
Link copied to clipboard
open fun enforceCallingOrSelfPermission(permission: String, message: String)
enforceCallingOrSelfUriPermission
Link copied to clipboard
open fun enforceCallingOrSelfUriPermission(uri: Uri, modeFlags: Int, message: String)
enforceCallingPermission
Link copied to clipboard
open fun enforceCallingPermission(permission: String, message: String)
enforceCallingUriPermission
Link copied to clipboard
open fun enforceCallingUriPermission(uri: Uri, modeFlags: Int, message: String)
enforcePermission
Link copied to clipboard
open fun enforcePermission(permission: String, pid: Int, uid: Int, message: String)
enforceUriPermission
Link copied to clipboard
open fun enforceUriPermission(uri: Uri, pid: Int, uid: Int, modeFlags: Int, message: String)
fileList
Link copied to clipboard
open fun fileList(): Array<String>
getApplication
Link copied to clipboard
fun getApplication(): Application
getApplicationContext
Link copied to clipboard
open fun getApplicationContext(): Context
getApplicationInfo
Link copied to clipboard
open fun getApplicationInfo(): ApplicationInfo
getAssets
Link copied to clipboard
open fun getAssets(): AssetManager
getBaseContext
Link copied to clipboard
open fun getBaseContext(): Context
getCacheDir
Link copied to clipboard
open fun getCacheDir(): File
getClassLoader
Link copied to clipboard
open fun getClassLoader(): ClassLoader
getCodeCacheDir
Link copied to clipboard
open fun getCodeCacheDir(): File
getColor
Link copied to clipboard
fun getColor(id: Int): Int
getColorStateList
Link copied to clipboard
fun getColorStateList(id: Int): ColorStateList
getContentResolver
Link copied to clipboard
open fun getContentResolver(): ContentResolver
getDatabasePath
Link copied to clipboard
open fun getDatabasePath(name: String): File
getDataDir
Link copied to clipboard
open fun getDataDir(): File
getDir
Link copied to clipboard
open fun getDir(name: String, mode: Int): File
getDownloadManager
Link copied to clipboard
open fun getDownloadManager(): Null
getDrawable
Link copied to clipboard
fun getDrawable(id: Int): Drawable
getExternalCacheDir
Link copied to clipboard
open fun getExternalCacheDir(): File
getExternalCacheDirs
Link copied to clipboard
open fun getExternalCacheDirs(): Array<File>
getExternalFilesDir
Link copied to clipboard
open fun getExternalFilesDir(type: String): File
getExternalFilesDirs
Link copied to clipboard
open fun getExternalFilesDirs(type: String): Array<File>
getExternalMediaDirs
Link copied to clipboard
open fun getExternalMediaDirs(): Array<File>
getFilesDir
Link copied to clipboard
open fun getFilesDir(): File
getFileStreamPath
Link copied to clipboard
open fun getFileStreamPath(name: String): File
getForegroundServiceType
Link copied to clipboard
fun getForegroundServiceType(): Int
getMainExecutor
Link copied to clipboard
open fun getMainExecutor(): Executor
getMainLooper
Link copied to clipboard
open fun getMainLooper(): Looper
getNoBackupFilesDir
Link copied to clipboard
open fun getNoBackupFilesDir(): File
getObbDir
Link copied to clipboard
open fun getObbDir(): File
getObbDirs
Link copied to clipboard
open fun getObbDirs(): Array<File>
getOpPackageName
Link copied to clipboard
open fun getOpPackageName(): String
getPackageCodePath
Link copied to clipboard
open fun getPackageCodePath(): String
getPackageManager
Link copied to clipboard
open fun getPackageManager(): PackageManager
getPackageName
Link copied to clipboard
open fun getPackageName(): String
getPackageResourcePath
Link copied to clipboard
open fun getPackageResourcePath(): String
getRequirements
Link copied to clipboard
abstract fun getRequirements(): Null
getResources
Link copied to clipboard
open fun getResources(): Resources
getScheduler
Link copied to clipboard
abstract fun getScheduler(): Null
getSharedPreferences
Link copied to clipboard
open fun getSharedPreferences(name: String, mode: Int): SharedPreferences
getString
Link copied to clipboard
fun getString(resId: Int): String
getSystemService
Link copied to clipboard
fun <T> getSystemService(serviceClass: Class<T>): T
open fun getSystemService(name: String): Any
getSystemServiceName
Link copied to clipboard
open fun getSystemServiceName(serviceClass: Class<out Any>): String
getText
Link copied to clipboard
fun getText(resId: Int): CharSequence
getTheme
Link copied to clipboard
open fun getTheme(): Resources.Theme
getWallpaper
Link copied to clipboard
open fun getWallpaper(): Drawable
getWallpaperDesiredMinimumHeight
Link copied to clipboard
open fun getWallpaperDesiredMinimumHeight(): Int
getWallpaperDesiredMinimumWidth
Link copied to clipboard
open fun getWallpaperDesiredMinimumWidth(): Int
grantUriPermission
Link copied to clipboard
open fun grantUriPermission(toPackage: String, uri: Uri, modeFlags: Int)
isDeviceProtectedStorage
Link copied to clipboard
open fun isDeviceProtectedStorage(): Boolean
isRestricted
Link copied to clipboard
open fun isRestricted(): Boolean
moveDatabaseFrom
Link copied to clipboard
open fun moveDatabaseFrom(sourceContext: Context, name: String): Boolean
moveSharedPreferencesFrom
Link copied to clipboard
open fun moveSharedPreferencesFrom(sourceContext: Context, name: String): Boolean
obtainStyledAttributes
Link copied to clipboard
fun obtainStyledAttributes(attrs: Array<Int>): TypedArray
onBind
Link copied to clipboard
fun onBind(intent: Intent): IBinder
onConfigurationChanged
Link copied to clipboard
open fun onConfigurationChanged(newConfig: Configuration)
onCreate
Link copied to clipboard
open fun onCreate()
open fun onCreate()
onDestroy
Link copied to clipboard
open fun onDestroy()
open fun onDestroy()
onDownloadChanged
Link copied to clipboard
open fun onDownloadChanged(downloadManager: Null, download: Null, finalException: Null)
onDownloadRemoved
Link copied to clipboard
open fun onDownloadRemoved(downloadManager: Null, download: Null)
onDownloadsPausedChanged
Link copied to clipboard
open fun onDownloadsPausedChanged(downloadManager: DownloadManager, downloadsPaused: Boolean)
onIdle
Link copied to clipboard
open fun onIdle(downloadManager: Null)
open fun onIdle(downloadManager: DownloadManager)
onInitialized
Link copied to clipboard
open fun onInitialized(downloadManager: DownloadManager)
onLowMemory
Link copied to clipboard
open fun onLowMemory()
onRebind
Link copied to clipboard
open fun onRebind(intent: Intent)
onRequirementsStateChanged
Link copied to clipboard
open fun onRequirementsStateChanged(downloadManager: DownloadManager, requirements: Requirements, notMetRequirements: Int)
onStart
Link copied to clipboard
open fun onStart(intent: Intent, startId: Int)
onStartCommand
Link copied to clipboard
open fun onStartCommand(intent: Null, flags: Null, startId: Null): Null
open fun onStartCommand(intent: Intent, flags: Int, startId: Int): Int
onTaskRemoved
Link copied to clipboard
open fun onTaskRemoved(rootIntent: Intent)
onTrimMemory
Link copied to clipboard
open fun onTrimMemory(level: Int)
onUnbind
Link copied to clipboard
open fun onUnbind(intent: Intent): Boolean
onWaitingForRequirementsChanged
Link copied to clipboard
open fun onWaitingForRequirementsChanged(downloadManager: DownloadManager, waitingForRequirements: Boolean)
openFileInput
Link copied to clipboard
open fun openFileInput(name: String): FileInputStream
openFileOutput
Link copied to clipboard
open fun openFileOutput(name: String, mode: Int): FileOutputStream
openOrCreateDatabase
Link copied to clipboard
open fun openOrCreateDatabase(name: String, mode: Int, factory: SQLiteDatabase.CursorFactory): SQLiteDatabase
peekWallpaper
Link copied to clipboard
open fun peekWallpaper(): Drawable
registerComponentCallbacks
Link copied to clipboard
open fun registerComponentCallbacks(callback: ComponentCallbacks)
registerReceiver
Link copied to clipboard
open fun registerReceiver(receiver: BroadcastReceiver, filter: IntentFilter): Intent
removeStickyBroadcast
Link copied to clipboard
open fun removeStickyBroadcast(intent: Intent)
removeStickyBroadcastAsUser
Link copied to clipboard
open fun removeStickyBroadcastAsUser(intent: Intent, user: UserHandle)
revokeUriPermission
Link copied to clipboard
open fun revokeUriPermission(uri: Uri, modeFlags: Int)
sendAddDownload
Link copied to clipboard
open fun sendAddDownload(context: Context, clazz: Class<out DownloadService>, downloadRequest: DownloadRequest, foreground: Boolean)
sendBroadcast
Link copied to clipboard
open fun sendBroadcast(intent: Intent)
sendBroadcastAsUser
Link copied to clipboard
open fun sendBroadcastAsUser(intent: Intent, user: UserHandle)
sendOrderedBroadcast
Link copied to clipboard
open fun sendOrderedBroadcast(intent: Intent, receiverPermission: String)
sendOrderedBroadcastAsUser
Link copied to clipboard
open fun sendOrderedBroadcastAsUser(intent: Intent, user: UserHandle, receiverPermission: String, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
sendPauseDownloads
Link copied to clipboard
open fun sendPauseDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)
sendRemoveAllDownloads
Link copied to clipboard
open fun sendRemoveAllDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)
sendRemoveDownload
Link copied to clipboard
open fun sendRemoveDownload(context: Context, clazz: Class<out DownloadService>, id: String, foreground: Boolean)
sendResumeDownloads
Link copied to clipboard
open fun sendResumeDownloads(context: Context, clazz: Class<out DownloadService>, foreground: Boolean)
sendSetRequirements
Link copied to clipboard
open fun sendSetRequirements(context: Context, clazz: Class<out DownloadService>, requirements: Requirements, foreground: Boolean)
sendSetStopReason
Link copied to clipboard
open fun sendSetStopReason(context: Context, clazz: Class<out DownloadService>, id: String, stopReason: Int, foreground: Boolean)
sendStickyBroadcast
Link copied to clipboard
open fun sendStickyBroadcast(intent: Intent)
sendStickyBroadcastAsUser
Link copied to clipboard
open fun sendStickyBroadcastAsUser(intent: Intent, user: UserHandle)
sendStickyOrderedBroadcast
Link copied to clipboard
open fun sendStickyOrderedBroadcast(intent: Intent, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
sendStickyOrderedBroadcastAsUser
Link copied to clipboard
open fun sendStickyOrderedBroadcastAsUser(intent: Intent, user: UserHandle, resultReceiver: BroadcastReceiver, scheduler: Handler, initialCode: Int, initialData: String, initialExtras: Bundle)
setTheme
Link copied to clipboard
open fun setTheme(resid: Int)
setWallpaper
Link copied to clipboard
open fun setWallpaper(bitmap: Bitmap)
start
Link copied to clipboard
open fun start(context: Context, clazz: Class<out DownloadService>)
startActivities
Link copied to clipboard
open fun startActivities(intents: Array<Intent>)
startActivity
Link copied to clipboard
open fun startActivity(intent: Intent)
startForeground
Link copied to clipboard
open fun startForeground(context: Context, clazz: Class<out DownloadService>)
startForegroundService
Link copied to clipboard
open fun startForegroundService(service: Intent): ComponentName
startInstrumentation
Link copied to clipboard
open fun startInstrumentation(className: ComponentName, profileFile: String, arguments: Bundle): Boolean
startIntentSender
Link copied to clipboard
open fun startIntentSender(intent: IntentSender, fillInIntent: Intent, flagsMask: Int, flagsValues: Int, extraFlags: Int)
startService
Link copied to clipboard
open fun startService(service: Intent): ComponentName
stop
Link copied to clipboard
open fun stop()
stopForeground
Link copied to clipboard
fun stopForeground(removeNotification: Boolean)
stopSelf
Link copied to clipboard
fun stopSelf()
stopSelfResult
Link copied to clipboard
fun stopSelfResult(startId: Int): Boolean
stopService
Link copied to clipboard
open fun stopService(name: Intent): Boolean
unbindService
Link copied to clipboard
open fun unbindService(conn: ServiceConnection)
unregisterComponentCallbacks
Link copied to clipboard
open fun unregisterComponentCallbacks(callback: ComponentCallbacks)
unregisterReceiver
Link copied to clipboard
open fun unregisterReceiver(receiver: BroadcastReceiver)
updateServiceGroup
Link copied to clipboard
open fun updateServiceGroup(conn: ServiceConnection, group: Int, importance: Int)